<?php
namespace PFBC\Element;

class Section extends \PFBC\Element {
	protected $attributes = array("class" => "pfbc-textarea", "rows" => "5");

	public function jQueryDocumentReady() {
		echo 'jQuery("#', $this->attributes["id"], '").outerWidth(jQuery("#', $this->attributes["id"], '").width());';
                echo 'jQuery("#', $this->attributes["id"], '").attr("style","'.$this->style.'");';
                echo 'jQuery("label[for=\''.$this->attributes["id"].'\']").hide();';
	}

	public function render() {
        if(intval($this->attributes['hr']) == 1){
            echo '<hr />';
        }
        echo $this->leo9x_label;
        
       // echo 'jQuery("label[for=\''.$this->attributes["id"].'\']").hide();';
    }
}
